﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using Exam.Shared;

namespace Exam.Domain.Tables
{
    public class BaseModel
    {
        /// <summary>
        /// 表的唯一ID
        /// </summary>

        [Key]
        public Guid Id { get; set; } = new Guid();
        /// <summary>
        /// 状态
        /// </summary>
        public DataStatus State { get; set; } = DataStatus.endabled;
        public DeletedStatus Deleted { get; set; } = DeletedStatus.undeleted;
        public string? CreateUser { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = System.DateTime.Now;
        public string? UpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        public string? DeleteUser { get; set; }
        public DateTime? DeleteTime { get; set; }
    }
}
